﻿using System;
using System.Collections.Generic;
using System.Text;
using BehaviorTrees;
using Microsoft.Xna.Framework;

namespace TestProject
{
	/// <summary>
	/// Entity for tests
	/// </summary>
	public class TestEntity : Entity
	{
		public int x = 0;
		public int y = 0;
		public int z = 0;

		public Node<TestEntity> Behavior
		{
			get;
			set;
		}
		public static TaskResult IncreaseX(TestEntity entity, GameTime gameTime)
		{
			entity.x++;
			return TaskResult.Success;
		}
		public static TaskResult IncreaseY(TestEntity entity, GameTime gameTime)
		{
			entity.y++;
			return TaskResult.Success;
		}
		public static TaskResult IncreaseZ(TestEntity entity, GameTime gameTime)
		{
			entity.z++;
			return TaskResult.Success;
		}
		public static TaskResult Success(TestEntity entity, GameTime gameTime)
		{
			return TaskResult.Success;
		}
		public static TaskResult Fail(TestEntity entity, GameTime gameTime)
		{
			return TaskResult.Failure;
		}
	}
}
